typedef enum {
	none,
	sync,
	fade_in,
	fade_out,
	next_dias,
	previous_dias
} cmd_t;

void protocol_sync(unsigned long time, unsigned long next_time);
void protocol_fade_in(unsigned long time);
void protocol_fade_out(unsigned long time);
void protocol_next_dias(unsigned long time);
void protocol_previous_dias(unsigned long time);
